/*
 * confirm delete an project/category
 * @return true or false
 */
function confirmDelete(name) {
	var isDelete = false;
    if(confirm('Do you really want to delete selected '+ name + '(s)?')) {
    	isDelete = true;    
    }
    return isDelete;
}


	function help(id, action, id2) {
		if (action == "syn_help_delete") {
			if (!confirm("Are you sure you want to delete this help topic?") )
     			return;
     	}
		var inputId = document.createElement("INPUT");
		inputId.type = "hidden";
		inputId.value = id;
		inputId.name = action;
		inputId.id = action;
		document.getElementById("hiddenForm").appendChild(inputId);
		if (id2 != 0) {
			var inputId2 = document.createElement("INPUT");
			inputId2.type = "hidden";
			inputId2.value = id2;
			inputId2.name = action + "2";
			inputId2.id = action + "2";
			document.getElementById("hiddenForm").appendChild(inputId2);
		}
		document.getElementById("hiddenForm").submit();
	}


